import request from '@/utils/request'

// 查询承担量信息列表
export function listBearInfo(query) {
  return request({
    url: '/course/BearInfo/list',
    method: 'get',
    params: query
  })
}

// 查询承担量信息详细
export function getBearInfo(id) {
  return request({
    url: '/course/BearInfo/view/' + id,
    method: 'get'
  })
}

// 新增承担量信息
export function addBearInfo(data) {
  return request({
    url: '/course/BearInfo/add',
    method: 'post',
    data: data
  })
}

// 修改承担量信息
export function updateBearInfo(data) {
  return request({
    url: '/course/BearInfo/update',
    method: 'put',
    data: data
  })
}

// 删除承担量信息
export function delBearInfo(id) {
  return request({
    url: '/course/BearInfo/delete/' + id,
    method: 'delete'
  })
}
